import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";

// https://vite.dev/config/
export default defineConfig({
    plugins: [react()],
    server: {
        host: "127.0.0.1",
        port: 5174,
        hmr: {
            host: "127.0.0.1",
        },
    },
    resolve: {
        alias: {
            "@": path.join(__dirname, "./src/"),
            "@pages": path.join(__dirname, "./src/pages/"),
        },
    },
});
